
<h2> <?php echo $this->info['title'];?> </h2>
 
 
 <?php  
 if (isset($this->messages)){
    echo "<div class='pager'>" . $this->pager . "</div>\n
    <div id='messagesList' class='ps-border'>\n";
    
    foreach($this->messages as $k => $v){
        echo "<a class='messagesA' href='/message/?id=" . $v->getId() . "'>";
        if($v->getReaded() == 1){
            echo "<ul class='allMessagesReaded'>";
        } else {
            echo "<ul class='allMessagesNotReaded'>";
        }

        echo "<li class='messageFrom'> От кого : " . $v->getFromName() . "</li>\n
        <li class='messageToWho'> Кому : " . $v->getToWhoName() . "</li>\n
        <li class='messageData'> Сообщение : " . $v->getData() . "</li>\n
        <li class='messageTime'> Отправлено : " . date('Y-m-d H:i:s',$v->getTimeCreated()) . "</li>\n
        </ul></a>\n";
    }
    
    echo "</div>\n";
     
     
 echo "<div class='pager'>" . $this->pager . "</div>\n";         
 } else{
     if(isset($this->errors)) {
         echo $this->errors;
     }
 }

